Documentation Center

Creating and uploading the .NET assembly for your External Activity

To develop an External Activity, create a .NET assembly and upload it to a Template Building Block in Content Manager. (This Template Building Block does not need to be used in a Template.)

Procedure

  1. Develop a class that extends the Tridion.ContentManager.CoreService.Workflow.ExternalActivity class. (Only directly implement the Tridion.ContentManager.Workflow.IExternalActivity interface if you have a pressing reason to do so).
  2. Do one of the following:
    • To create an External Activity that contains an Automatic Activity implementation, implement the Execute() method of this class.
    • To create an External Activity that contains an Activity expiration implementation, implement the Expire() method of this class. Note that this code will only run if the Activity has a due date.
    • To create a single External Activity that contains implementations of both, implement both methods.

    Refer to the Core Service API reference documentation for more details.

  3. Create a .NET assembly containing your class.
  4. Access the Content Manager Explorer Web site.
  5. Navigate to a Folder in which you want to create the Template Building Block.
  6. In the Create Ribbon tab, select New Template Building Block.
    A dialog opens for your Template Building Block.
  7. In the General tab, enter a name for the Template Building Block.
  8. Select the Source tab and from the Template Type dropdown, select .NET Assembly.
    A Load from Disk button appears under the dropdown.
  9. Select Load from Disk and in the Windows file selection dialog that opens, navigate to and select the DLL you want to upload.
  10. Select Save and Close to commit your changes.